<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>商家登陆</title>
</head>
<body style="width: 100%;height: 100%;justify-content: center">


   <h4 th:text="${error}==null ? '' : ${error}"/>

    <form method="post" th:action="@{/user/loginSubmit}">
        <div>
            用户名：<input name="username" placeholder="请输入用户名" type="text"/>
        </div>
        <div>
            密码：<input name="password" placeholder="请输入密码" type="password"/>
        </div>
        <button type="submit" >登录</button>
        <button type="button" onclick="register()">注册</button>
    </form>


<script type="text/javascript">
    
    function login() {
        
    }
    
    function register() {
        location.href = 'register'
    }

</script>
</body>
</html>
